<include file="Public:header" />
<div class="main">
    <div class="position"><p>您的当前位置：<a href="/">首页</a>  >  <a href="{:U('Ask/index')}">问答</a> </p></div>
    <div class="m_t_15 overflow_h">
        <div class="boker_left">
            <div class="ask_fenlei">
                <h1 class="ask_fenl">问答分类</h1>
                <volist name='ask_cate' id='val'>
                    <h2>{$val.name}</h2>
                    <ul class="overflow_h">
                        <volist name='val.child' id='vo'>
                            <li><a title="{$vo.name}" href="{:U('Ask/lists',array('alias'=>$vo['alias']))}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </volist>
            </div>
            <div class="ask_star">
                <h1 class="ask_fenl">回答之星</h1>
                <ul>
                    <volist name='user_answer' id='vo'>
                    <li><span class="ask_star_img"><a target="_blank" href="{:U('StoreAsk/index',array('uid'=>$vo['user_id']))}"><img src="{$vo.head_ico}" width="82" height="92" /></a></span>
                        <h2>{$vo.true_name} <img src="__IMG__/ico49.png" width="15" height="15" /></h2>
                        <div class="overflow_h">
                            <div style="height: 20px; margin-top: 5px;" class="star">
                                <php>
                                    for($i=1;$i<6;$i++){
                                    if($vo['level']>=$i){
                                </php>
                                <span class="star_01 star_ico01" title="{$i}级会员"></span>
                                <php>}else{</php>
                                <span class="star_01 star_ico02" title="{$i}级会员"></span>
                                <php>}}</php>
                            </div>
                        </div>
                        <p><span class="text11">已回答 {$vo.answer}个问题</span></p>
                        <p><a target="_blank" href="{:U('StoreAsk/index',array('uid'=>$vo['user_id']))}" class="but31">我要提问</a></p>
                    </li>
                    </volist>
                </ul>
            </div>


        </div>
        <div class="boker_right">
            <form method="get"  id="soForm">
                <input type="hidden" value="Home" name="m">
                <input type="hidden" value="Ask" name="c">
                <input type="hidden" value="index" name="a">
            <div class="ask_sousuo">
                <h2><span class="ask_sousuo_sp"><input name="key" type="text" class="inp06" id="textfield2" value="请输入您要搜索的问题" /></span>
                    <span class="ask_sousuo_sp1"><a href="javascript:;" id="so_but" class="but32">搜索答案</a></span></h2>
                <p class="overflow_h">
                    <volist name='ask_keys' id='vo'>
                        <a title="{$vo.title}" href="{:U('Ask/index',array('key'=>$vo))}">{$vo}</a>
                    </volist>
                </p>
            </div>
            </form>
            <div class="body_title"><ul><li><a href="#" class="selected">热门楼盘问答</a></li><li><a href="{:U('Ask/problem')}">最新问题</a></li><li><a href="{:U('Ask/answer')}">最新解决</a></li></ul></div>

            <div class="ask_body">
                <ul class="ask_body_ul overflow_h">
                    <volist name='house_list' id='vo'>
                    <li <php>if(($key+1)%4==0){ </php> style="margin-right:0" <php>}</php> ><span class="group_buy_l_img"><div class="buy_t1"><h1><a title="{$vo.title}" target="_blank" href="{:U('House/detail',array('id'=>$vo['id']))}">{$vo.title}</a></h1></div><a target="_blank" href="{:U('House/detail',array('id'=>$vo['id']))}"><img alt="{$vo.title}" src="{$vo.img}" width="200" height="150" /></a></span><p><a target="_blank" href="{:U('House/ask',array('hid'=>$vo['id']))}">共有<span class="org03">{$house_ask[$vo['id']]}</span>条问答</a></p></li>
                    </volist>
                </ul>
            </div>

            <div class="ask_body02">
                <h2 class="ask_body02_h2"><span class="ask_b_sp03"><a href="{:U('Ask/add')}" class="but25">我要提问</a></span><span class="ask_b_sp01">全部问题</span><span class="ask_b_sp02">热门问题分类：
                <volist name='top_cate' id='vo'>
                   &nbsp;&nbsp; <a title="{$vo.name}" href="{:U('Ask/lists',array('alias'=>$vo['alias']))}">{$vo.name}</a>
                </volist>
                </span>
                </h2>
                <div class="ask_body02_n">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <th width="66%" align="left">标题</th>
                            <th width="8%">回答</th>
                            <th width="10%">状态</th>
                            <th width="14%">更新时间</th>
                        </tr>
                        <volist name="list['list']" id='vo'>
                            <tr>
                                <td><span class="org02">[<a title="{$vo.title}" href="{:U('Ask/lists',array('alias'=>$vo['alias']))}">{$vo.name}</a>]</span><a title="{$vo.title}" href="{:U('Ask/detail',array('id'=>$vo['id']))}">{$vo.title}</a></td>
                                <td align="center">{$vo.answer}</td>
                                <td>
                                    <span <php>if($vo['solve_status']==2){</php>class="but33"<php>}else{</php>class="but34"<php>}</php> >{$solve_status[$vo['solve_status']]}</span>
                                </td>
                                <td align="center">
                                    <php>
                                        if($vo['update_date']){
                                    </php>
                                    {$vo.update_date|date='Y-m-d H:i',###}
                                    <php>}else{</php>
                                    {$vo.add_time|date='Y-m-d H:i',###}
                                    <php>}</php>
                                </td>
                            </tr>
                        </volist>
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
<script type="text/javascript">
    $("#textfield2").fangCmsText();
    $("#so_but").click(function(){
        var v = $("#textfield2").val();
        if(v=='' || v=='请输入您要搜索的问题'){
            msg_show('请输入您要搜索的问题',2);
            return false;
        }
        $("#soForm").submit();
    });
</script>
<include file="Public:footer" />